package fire.button;

public class QuitButton extends Button {

	public QuitButton(String name,  double x, double y,
			int collisionid, String gfxname) {
		super(name, x, y, collisionid, gfxname);
	}

	@Override
	public void mouseInside() {
		setGraphic("quit_hover");

	}

	@Override
	public void mouseOutside() {
		setGraphic("quit");

	}

	@Override
	public void leftClick() {
		System.exit(0);

	}

	@Override
	public void middleClick() {

	}

	@Override
	public void rightClick() {

	}
}
